package club.banyuan.reserve.controller.api;

import club.banyuan.reserve.common.CommonResult;
import club.banyuan.reserve.service.AdminUserService;
import club.banyuan.reserve.vo.UserVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;


/**
 * @author HanChao
 * 描述信息：
 */
@RestController
@RequestMapping(value = "/api/admin/user")
public class AdminUserController {

    @Autowired
    private AdminUserService adminUserService;

    @GetMapping(value = "/list")
    public CommonResult list () {

        List<UserVo> list = adminUserService.showUserinfo();

        return CommonResult.success(list);
    }
}
